package com.agentlab.imitation.web.action;


import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import org.springframework.stereotype.Controller;

import com.agentlab.imitation.common.CommonConstant;

/**
 *  * 用户退出登录状态
 */
@Controller 
public class UserLogoutAction  {
	String loginbz = "";
	public String userLogout(){
			HttpServletRequest reg = ServletActionContext.getRequest();
			reg.getSession().removeAttribute(CommonConstant.USER_SESSION);
			setLoginbz("");
		return "logout";
	}
	
	public void setLoginbz(String loginbz) {
			this.loginbz = loginbz;
	}
}
